// @ts-ignore
/* eslint-disable */
import request from 'umi-request';
//import request from '../request-api'
//const PORT = 'http://8.135.54.87:9999'
//const PORT = 'http://192.168.1.76:9999'
//const PORT = 'http://47.245.33.153:9999'
import {PORT} from '../requestPath/index'
/** 登录接口 POST /api/login/account */
export async function userLogins(body: API.LoginParams, options?: { [key: string]: any }) {
  return request<API.LoginResult>(PORT+'/api/user/login/account', {
    method: 'POST',
    data: body,
    ...(options || {}),
  });
}


/** 获取当前的用户 GET /api/currentUser */
export async function userCurrentUser(
  params?:API.LoginParams
) {
  return request<{
    data: API.CurrentUser;
  }>(PORT+'/api/user/login/currentUser', {
    method: 'POST',
    data:params
  });
}


